package com.bhms.module.resources.village.action;

import com.bhms.module.resources.village.mapper.Estates;
import com.bhms.module.resources.village.service.VillageService;
import com.sunshulin.common.action.GeneralAction;

public class VillageAction extends GeneralAction {

	private static final long serialVersionUID = 1532984918414545356L;

	private VillageService villageService;

	private Estates estates = new Estates();

	/**
	 * 根据汉语拼音搜索小区
	 * 
	 * @throws Exception
	 */
	public void searchEstatesByPy() throws Exception {
		String json = villageService.searchEstatesByJp(estates);
		out(json);
	}

	public void setVillageService(VillageService villageService) {
		this.villageService = villageService;
	}

	public Estates getEstates() {
		return estates;
	}

	public void setEstates(Estates estates) {
		this.estates = estates;
	}

}
